<h3>{$title}</h3>
{include file="errors.tpl"}

{if $WEB_APP.show_form} 
	{include file = "form.tpl" submit_title=$WEB_APP.submit_title form_title=$WEB_APP.title_add}	
{/if}

{if $WEB_APP.show_table}
	{if $WEB_APP.show_form}
		<br>
	{/if}
	<a href="{$WEB_APP.print_url}">{$text.txt_print_report}</a><br><br>
	{include file="table_header.tpl" columns=$WEB_APP.columns}
	{include file="table_rows.tpl" index='id' items=$WEB_APP.rows columns=$WEB_APP.columns}
	{include file="table_footer.tpl" columns_count=$WEB_APP.columns_count}
{/if}
